#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main(){
    string a,b;
    cin>>a>>b;
    int i=a.size()-1;
    int j=b.size()-1;
    int t=0;
    vector<int>res;
    while(i>=0||j>=0){
        int sum=t;
        if(i>=0)
            sum+=a[i--]-'0';
        if(j>=0)
            sum+=b[j--]-'0';
        t=sum/10;
        sum%=10;
        res.push_back(sum);
    }
    if(t)
        res.push_back(t);
    for(int i=res.size()-1;i>=0;i--)
        cout<<res[i];
    return 0;
}